package com.cap.bts.crmdp.dealer.remind.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.cap.bts.framework.common.domain.BaseDomain;
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Entity
@Table(name="tm_raw_customer")
@AttributeOverrides({
    @AttributeOverride(name="createBy", column=@Column(name="CREATE_BY")),
    @AttributeOverride(name="createDate", column=@Column(name="CREATE_DATE", nullable = false)),
    @AttributeOverride(name="lastUpdateBy", column=@Column(name="LAST_UPDATE_BY")),
    @AttributeOverride(name="lastUpdateDate", column=@Column(name="LAST_UPDATE_DATE"))
})
public class Customer extends BaseDomain implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Long id;
	private Long serviceCenterID;
	private String customerID;
	private String mobileNumber;
	private String name;
	private String contactName;
	private String contactPhone;
	private Date creationDate;
	private Date lastModificationDate;
	private String receiveSMSorNot;
	private String crmMember;
	
	@Id
    @GeneratedValue(strategy=GenerationType.AUTO)
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	@Column(name="service_center_id")
	public Long getServiceCenterID() {
		return serviceCenterID;
	}
	public void setServiceCenterID(Long serviceCenterID) {
		this.serviceCenterID = serviceCenterID;
	}
	@Column(name="customer_id")
	public String getCustomerID() {
		return customerID;
	}
	public void setCustomerID(String customerID) {
		this.customerID = customerID;
	}
	@Column(name="mobile_number")
	public String getMobileNumber() {
		return mobileNumber;
	}
	public void setMobileNumber(String mobileNumber) {
		this.mobileNumber = mobileNumber;
	}
	@Column(name="customer_name")
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Column(name="contact_name")
	public String getContactName() {
		return contactName;
	}
	public void setContactName(String contactName) {
		this.contactName = contactName;
	}
	@Column(name="contact_phone")
	public String getContactPhone() {
		return contactPhone;
	}
	public void setContactPhone(String contactPhone) {
		this.contactPhone = contactPhone;
	}
	@Column(name="creation_date")
	public Date getCreationDate() {
		return creationDate;
	}
	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}
	@Column(name="last_modification_date")
	public Date getLastModificationDate() {
		return lastModificationDate;
	}
	public void setLastModificationDate(Date lastModificationDate) {
		this.lastModificationDate = lastModificationDate;
	}
	@Column(name="receive_SMS_or_Not")
	public String getReceiveSMSorNot() {
		return receiveSMSorNot;
	}
	public void setReceiveSMSorNot(String receiveSMSorNot) {
		this.receiveSMSorNot = receiveSMSorNot;
	}
	@Column(name="crm_member")
	public String getCrmMember() {
		return crmMember;
	}
	public void setCrmMember(String crmMember) {
		this.crmMember = crmMember;
	}
	
	
}
